﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RecoverPassword.aspx.cs"
    Inherits="CoolCode.Web.UI.Views.Home.RecoverPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>忘记密码</title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="centerDiv" style="width: 300px; margin-top: 100px;  ">
        <div class="generalDialog">
            <!--Title -->
            <div class="HeaderTitle">
                <asp:Label ID="lblSystem" runat="server" Text="忘记密码"></asp:Label>
            </div>
            <!--Content -->
            <div>
                <table border="0" cellspacing="5" style="width: 100%">
                    <tr>
                        <td align="center" colspan="2">
                            输入你的用户名和邮箱来重置密码
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 80px;">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                ErrorMessage="不能为空" ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">Email:</asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                ErrorMessage="不能为空" ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" colspan="2">
                            <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="提  交" CssClass="button" ValidationGroup="PasswordRecovery1" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2" style="color: Red;">
                            <asp:Literal ID="FailureText" runat="server"></asp:Literal>
                        </td>
                    </tr>
                   <%-- <tr>
                        <td align="center" colspan="2"> 
                            <asp:ChangePassword ID="ChangePassword1" runat="server" BackColor="#EFF3FB" BorderColor="#CCCC99"
                                BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="10pt">
                                <LabelStyle HorizontalAlign="Left" />
                                <TitleTextStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Font-Size="Medium" />
                            </asp:ChangePassword>
                        </td>
                    </tr>--%>
                </table>
            </div>
        </div>
    </div>
    <asp:Panel ID="pnlChangePassword" runat="server" >
     <div class="centerDiv" style="width: 300px; margin-top: 25px;">
        <div class="generalDialog">
            <!--Title -->
            <div class="HeaderTitle">
                <asp:Label ID="Label1" runat="server" Text="修改密码"></asp:Label>
            </div>
            <!--Content -->
            <div>
                <asp:ChangePassword ID="ChangePassword1" runat="server">
                    <ChangePasswordTemplate>
                        <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                            <tr>
                                <td>
                                    <table border="0" cellspacing="5" style="width: 100%">
                                        <tr>
                                            <td align="right" style="width: 100px;">
                                                <asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword">旧&nbsp;密&nbsp;码:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="CurrentPassword" runat="server" CssClass="FlatTextBox" TextMode="Password"
                                                    Width="150px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword"
                                                    ErrorMessage="不能为空" ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">新&nbsp;密&nbsp;码:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="NewPassword" runat="server" CssClass="FlatTextBox" TextMode="Password"
                                                    Width="150px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword"
                                                    ErrorMessage="不能为空" ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword">确认新密码:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="ConfirmNewPassword" runat="server" CssClass="FlatTextBox" TextMode="Password"
                                                    Width="150px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" ControlToValidate="ConfirmNewPassword"
                                                    ErrorMessage="不能为空" ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:CompareValidator ID="NewPasswordCompare" runat="server" ControlToCompare="NewPassword"
                                                    ControlToValidate="ConfirmNewPassword" Display="Dynamic" ErrorMessage="两次输入的密码不匹配"
                                                    ValidationGroup="ChangePassword1"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2" style="color: Red;">
                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:Button ID="ChangePasswordPushButton" runat="server" CssClass="button" CommandName="ChangePassword"
                                                    Text="修改密码" ValidationGroup="ChangePassword1" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </ChangePasswordTemplate>
                    <SuccessTemplate> 
                        <div class="centerDiv" style="height:150px; padding:25px;">
                            <h3>
                                修改密码成功！<br /><br />   请谨记新密码</h3>
                        </div>
                    </SuccessTemplate>
                </asp:ChangePassword>
            </div>
        </div>
    </div>
    </asp:Panel>
    </form>
</body>
</html>
